import request from '@/utils/request'

// 查询平台风幕柜商品列表
export function listPlatformProjectSegGoods(query) {
  return request({
    url: '/genius/platform-project-seg-goods/list',
    method: 'get',
    params: query
  })
}

// 查询平台风幕柜商品详细
export function getPlatformProjectSegGoods(id) {
  return request({
    url: '/genius/platform-project-seg-goods/' + id,
    method: 'get'
  })
}

// 新增平台风幕柜商品
export function addPlatformProjectSegGoods(data) {
  return request({
    url: '/genius/platform-project-seg-goods',
    method: 'post',
    data: data
  })
}

// 修改平台风幕柜商品
export function updatePlatformProjectSegGoods(data) {
  return request({
    url: '/genius/platform-project-seg-goods',
    method: 'put',
    data: data
  })
}

// 删除平台风幕柜商品
export function delPlatformProjectSegGoods(id) {
  return request({
    url: '/genius/platform-project-seg-goods/' + id,
    method: 'delete'
  })
}

// 逻辑删除平台风幕柜商品
export function removedPlatformProjectSegGoods(id) {
  return request({
    url: '/genius/platform-project-seg-goods/' + id,
    method: 'delete'
  })
}
